﻿@if (Request.IsAuthenticated) {
    <text>
        Chào, @Html.ActionLink(User.Identity.Name, "Manage", "Account", routeValues: null, htmlAttributes: new { @class = "username", title = "Manage" })!
        @using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logoutForm" })) {
            @Html.AntiForgeryToken()
            <a href="javascript:document.getElementById('logoutForm').submit()">Đăng xuất</a>
        }
    </text>
} else {
	if (Request.IsLocal)
	 {
		<div class="mini_menu_top userInfo">
			<span>@Html.ActionLink("Đăng nhập |", "Login", "Account", routeValues: null, htmlAttributes: new { id = "loginLink" })</span>
			<span>@Html.ActionLink("Đăng ký ", "Register", "Account", routeValues: null, htmlAttributes: new { id = "registerLink" })</span>
		</div>		 
	 }

}


